# -*- coding: utf-8 -*-

import unittest
from broker.futu.Api import Trade

class TradeTest(unittest.TestCase):

    def test_get_acc_list(self):
        Trade.get_acc_list()

    def test_accinfo_query(self):
        Trade.accinfo_query()

    def test_acctradinginfo_query(self):
        code = "HK.00700"
        price = 400
        Trade.acctradinginfo_query(code, price)

    def test_position_list_query(self):
        code = "HK.00700"
        Trade.position_list_query(code)

    def test_get_margin_ratio(self):
        code_list = ['HK.00700', 'HK.09988']
        Trade.get_margin_ratio(code_list)

